package com.orderplus.opshop.synces.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("product_attribute")
@EqualsAndHashCode(callSuper=false)
public class ProductAttribute extends Model<ProductAttribute> {

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	private Integer level;
	@TableField(value = "parent_id")
	private Integer parentId;
	private String from;
	private String name;
	@TableField(value = "name_zh")
	private String nameZh;
	@TableField(value = "name_th")
	private String nameTh;
	@TableField(value = "name_id")
	private String nameId;
	@TableField(value = "create_time")
	private Date createTime;
	@TableField(value = "update_time")
	private Date updateTime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}